Figure 28. Comparison of Component Action and Direct Action request processing.
The major differences between component actions and direct actions are:
Direct actions are stateless actions. They do not require any state to be preserved between requests. For this reason, direct actions do not create session objects by default. WODirectAction defines a method that does create a session, so direct actions can create a session and store state if necessary.
Direct actions do not automatically extract input values from the request. If there are input values, the HTML element places them in the HTTP request, and the action method must explicitly request them from the WORequest object.
Direct actions have static, predictable URLs. Regardless of which session is performing the action, the URL for the action always refers to a specific action-one that was determined when the current page was generated (not when the request is handled).
Table of Contents
Next Section